﻿<%@ Page Title="Upload" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="milanov.Upload" %>
<%-- Upload pagina door Thom&Eden --%>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
        <h1><%: Title %></h1><br />
    <i>Op deze pagina kunt u foto's uploaden, categorieën aanmaken en categorieën verwijderen.</i><br /><br />
    <fieldset>
		<legend>Upload foto</legend>
        <asp:Label ID="Label2" runat="server" Text="Naam"></asp:Label>
        <br />
        <asp:TextBox ID="NaamBox" runat="server" ToolTip="Voer de naam van de foto in"></asp:TextBox>
        <br />
        <asp:Label ID="Label3" runat="server" Text="Beschrijving"></asp:Label>
        <br />
        <asp:TextBox ID="CommentBox" runat="server" Height="65px" TextMode="MultiLine" Width="204px"></asp:TextBox>
        <br />
        Categorie<br />
        <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" DataSourceID="SqlDataSource2" DataTextField="Categorie" DataValueField="Categorie">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:fotosDB %>" SelectCommand="SELECT [Categorie] FROM [Categoriën]"></asp:SqlDataSource>
        <br />
        <asp:Label ID="PrijsLabel" runat="server" Text="Prijs"></asp:Label>
        <br />
        <asp:TextBox ID="PrijsBox" runat="server" BackColor="#CCCCCC" TextMode="Number" ToolTip="Voer het gewenste bedrag in">0,00</asp:TextBox>
        <br />
        <asp:Label ID="Label4" runat="server" Text="Afbeelding"></asp:Label>
        <br />
        <asp:FileUpload ID="FileUpload" runat="server" ToolTip="JPG, JPEG, PNG" />
        <br />
        <br />
        <asp:Button ID="UploadButton" runat="server" OnClick="UploadButton_Click" Text="Upload" />
        <asp:Label runat="server" id="StatusLabel" />
            </fieldset>
        <br />
		<asp:Image ID="Image1" runat="server" />
        <asp:Image ID="Image2" runat="server" />
    <fieldset>
        <br />
        <legend>Voeg categorie toe</legend>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fotosDB %>" SelectCommand="SELECT * FROM [Fotos]"></asp:SqlDataSource>
        <br />
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <br />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Add" />
    </fieldset>
        <br />
    <fieldset>
        <legend>Verwijder categorie</legend>
        <br />
        <asp:DropDownList ID="DropDownList2" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" DataSourceID="SqlDataSource2" DataTextField="Categorie" DataValueField="Categorie">
        </asp:DropDownList><br />
        <asp:Button ID="DeleteButton" runat="server" OnClick="DeleteButton_Click" Text="Verwijder" />
        <br />
        <asp:Label ID="DeleteLabel" runat="server"></asp:Label>
    </fieldset>
</asp:Content>